package seata.demo.common.feign;


import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import seata.demo.common.dto.OrderDTO;
import seata.demo.common.response.ObjectResponse;

@FeignClient(value = "order", path = "/order")
public interface OrderServiceFeign {

    /**
     * 创建订单
     */
    @ApiOperation("创建订单")
    @PostMapping("/createOrder")
    ObjectResponse<OrderDTO> createOrder(@RequestBody OrderDTO orderDTO);
}
